
<template>
    <div id="login-container">
      <div id="login-header">
        欢迎来到MBTI测试系统
      </div>
        <el-form :model="form" label-width="120px">
    <el-form-item label="用户名">
      <el-input v-model="form.username" />
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="input" type="password" 
      placeholder="Please input password" show-password/>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">登录</el-button>
    </el-form-item>
  </el-form>
    </div>
</template>

<script>
    export default {
        name : "App",
        data() {
            return {
                form: {
                    username: '',
                    password: ''
                }
            }
        },
    methods: {
      onsubmit() {
          console.log('username:' + this.form.username)
          console.log('username:' + this.form.password)
      }
    }
}
</script>


<style scoped>
#login-containter{
  width: 400px;
  margin: 0 auto;
}

#login-header{
  text-align: center;
  margin-top: 100px;
  margin-bottom: 30px;
  font-size: 23px;
  color:cornflowerblue;
}
</style>